<?php
require_once("../../classes/User.php");

$user = new User;
$fname = ucwords(ucfirst($_POST['fname']));
$lname = ucwords(ucfirst($_POST['lname']));
$username = $_POST['username'];
$pass = $_POST['pass'];
$gender = ucwords(ucfirst($_POST['gender']));
$user->createUser($fname,$lname,$username,$pass,$gender);

header('location: ../../index.php');

?>